/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Programming
 */
public class Position {
    public  double x, error, z;
    Position(){x = 0; z = 0; error = 0;}
    Position(float _x, float _z) { x = _x; z = _z; error = 0; }
    public void Print()
    {
	System.out.println("X: " + x + " Z: " + z);
    }
    void SetError(Position _avg)
    {
	double dx = (x - _avg.x);
	double dz = (z - _avg.z);
	error = Math.sqrt((dx*dx) + (dz * dz));
    }

}
